package com.bidepan.spring6.tx.controller;

import com.bidepan.spring6.tx.service.CheckoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class CheckoutController {
    @Autowired
    private CheckoutService checkoutService;
    public void checkout(Integer[] bookIds,Integer userId){
        try{
            checkoutService.checkout(bookIds, userId);
        }
        catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
